@import './variables.module.scss';
@import './mixin.scss';
@import './sidebar.scss';
@import './transition.scss';
@import './element-ui.scss';

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
  Microsoft YaHei, Arial, sans-serif;
}

*,
*:before,
*:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
.color-danger{
  color: #F56C6C;
}

// 表格页面的基础样式
.page-wrap{
  background: #fff;
  box-sizing: border-box;
  .search-form{
    .el-form-item--small.el-form-item{
      margin-bottom: 12px;
    }
    .form-width { // 短的form
      width: 150px;
      .el-input {
        width: 150px; // 修复 el-select 宽度问题
      }
    }
    .form-long-width{ // 长的form，比如日期选择器
      width: 350px;
    }
  }
  // 更多查询内部的长度
  .params-search-form{
    .form-width { // 短的form
      width: 250px;
    }
    .form-long-width{ // 长的form，比如日期选择器
      width: 510px;
    }
  }
  // 操作按钮
  .operate-btns-group{
    //margin-bottom: -10px;
    padding-top: 2px;
    .el-button+.el-button{
      margin-left: 0;
    }
    & > button,
    & > .custom-btn,
    & > .el-badge,
    & > .el-dropdown{
      margin-right: 10px;
      margin-bottom: 12px;
    }
  }
}

// 分模块化的标题
.module-title{
  font-size: 14px;
  color: var(--el-color-primary);
  line-height: 40px;
  padding-left: 10px;
  position: relative;
  &::before{
    content: '';
    display: block;
    position: absolute;
    height: 1em;
    width: 2px;
    border: 1px;
    background: var(--el-color-primary);
    left: 0;
    top: calc((100% - 1em) / 2);
  }
}

// 文字超出
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

